Home } Games } Magic Squares



Here is a fun JavaScript game. Try to put the squares back in order. The '0' repesents the empty spot, and click a square next to the 0 to make them trade places! Get the squares back in order and you win!

Magic Squares



Put the numbers in order so that they read 1-8.
The 0 is the 'empty' place. Click on any number
next to 0 and they will switch places.
# of moves:


JavaScript Source Code 2002: Games: Magic Squares

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as NotePad or SimpleText) and save (Control-s or Apple-s). The script is yours!